package org.lanqiao.ssm.facede.auth.facede.impl;

import org.lanqiao.ssm.common.core.facede.base.BaseManagerFacede;
import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.facede.auth.facede.RoleManagerFacedeI;
import org.lanqiao.ssm.facede.auth.model.Role;
import org.lanqiao.ssm.facede.auth.service.RoleServiceI;
import org.springframework.stereotype.Component;

@Component("roleManagerFacede")
public class RoleManagerFacedeImpl extends
		BaseManagerFacede<Role, String> implements RoleManagerFacedeI {
	@javax.annotation.Resource
	private RoleServiceI roleService;

	@Override
	public BaseServiceI<Role, String> getService() {
		return roleService;
	}

	@Override
	public int add(Role role) throws Exception {
		
		return roleService.add(role);
	}

	@Override
	public int remove(String id) throws Exception {
		
		return roleService.remove(id);
	}

	@Override
	public int edit(Role role) throws Exception {
		
		return roleService.edit(role);
	}

	@Override
	public int editMenu(Role role) throws Exception {
		
		return roleService.editMenu(role);
	}

	@Override
	public String getMenuIdsByPrimaryKey(String roleId) {
		
		return roleService.getMenuIdsByPrimaryKey(roleId);
	}

}
